package com.batsoft.trade.api.common.model;

import com.gomyb.result.RCode;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/5/9 12:02
 */
public enum ResultCode implements RCode {
    NO_PERMISSION(1001, "没有权限");

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;

    private String msg;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
